package com.zmzncs.lmtc.module.shop.pojo.shop_goods;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 商户-商品
 * </p>
 *
 * @author 高博文
 * @since 2021-05-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("shop_goods")
@ApiModel(value="Goods对象", description="商户-商品")
public class Goods implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "id")
    private Long id;

    @ApiModelProperty(value = "商户id")
    private Long shopId;

    @ApiModelProperty(value = "商品名称")
    private String goodsName;

    @ApiModelProperty(value = "价格")
    private BigDecimal originalPrice;

    @ApiModelProperty(value = "销售价")
    private BigDecimal sellPrice;

    @ApiModelProperty(value = "状态（1：上架，0：下架）")
    private Integer status;

    @ApiModelProperty(value = "库存")
    private Integer stock;

    @ApiModelProperty(value = "是否限购（0：否，1：是）")
    private Integer isLimitQuantity;

    @ApiModelProperty(value = "限购数量")
    private Integer limitQuantity;

//    @ApiModelProperty(value = "有效期")
//    private Integer expireDate;

//    @ApiModelProperty(value = "是否永久（0：否，1：是）")
//    private Integer isPermanent;

    @ApiModelProperty(value = "商品描述")
    private String description;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    @ApiModelProperty(value = "删除标志   0：否；1：是  ")
    private Integer isDeleted;


}
